<%@ taglib prefix="s" uri="/struts-tags" %>
<html>
<head>
<title>JLC Struts2 Action Test</title>
<s:head/>
</head>
<body><center><br><br>
<h1>JLC Struts2 Action Test</h1>
<table>
<tr><td>Name</td><td><s:property value="user.name"/></td></tr>
<tr><td>Email</td><td><s:property value="user.email"/></td></tr>
<tr><td>Phone</td><td><s:property value="user.phone"/></td></tr>

<tr><td>Email Attribute from request</td>
<td><s:property value="#request.EMAIL"/></td></tr>

<tr><td>User Attribute from request</td>
<td><s:property value="#request.USER.name"/><br>
<td><s:property value="#request.USER.email"/><br>
<td><s:property value="#request.USER.phone"/><br>
</td></tr>

<tr><td>Phone Attribute from request</td>
<td><s:property value="#request.PHONE"/></td></tr>

<tr><td>MSG Attribute from request</td>
<td><s:property value="#request.MSG"/></td></tr>

<tr><td>User Attribute from session</td>
<td><s:property value="#session.USER.name"/><br>
<td><s:property value="#session.USER.email"/><br>
<td><s:property value="#session.USER.phone"/><br>
</td></tr>

<tr><td>Name Attribute from Application</td>
<td><s:property value="#application.NAME"/></td></tr>

<tr><td>Names Attribute from session</td>
<td><s:iterator id="nam" value="#session.NAMES">
<s:property value="nam"/>
</s:iterator>
</td></tr>

<tr><td>Users Attribute from application</td>
<td>
<s:iterator id="user1" value="#application.USERS">
<s:property value="user1.name"/>
<s:property value="user1.email"/>
<s:property value="user1.phone"/>
</s:iterator></td></tr>

<tr><td>Str from Hello</td><td><s:property value="hello.str"/></td></tr>
<tr><td>Msg from Hai</td><td><s:property value="hello.hai.msg"/></td></tr>

<tr><td>Students from Action</td>
<td>
<s:iterator value="#session.JLC">
Name:<s:property value="sname"/><br/>
<s:iterator value="address">
City:<s:property value="city"/><br/>
<s:iterator value="phones">
<s:property/><br/>
</s:iterator>
</s:iterator>
</s:iterator>


</table>

</center>

</body>
</html>